package com.aspose.cells;

class zwd extends zck {
   zwd(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f();
      float var3 = var1.g();
      float var4 = var1.h();
      float var5 = var1.i();
      com.aspose.cells.b.a.b.zo[] var6 = new com.aspose.cells.b.a.b.zo[4];
      float var7 = 0.3F * Math.min(var1.h(), var1.i());
      switch(this.e.b) {
      case 1:
      case 3:
         var6[0] = new com.aspose.cells.b.a.b.zo(var7 + this.g, this.h);
         var6[1] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, this.h);
         var6[2] = new com.aspose.cells.b.a.b.zo(var1.h() - var7 + this.g, var1.i() + this.h);
         var6[3] = new com.aspose.cells.b.a.b.zo(this.g, var1.i() + this.h);
         break;
      case 2:
      case 4:
         var6[0] = new com.aspose.cells.b.a.b.zo(this.g, this.h);
         var6[1] = new com.aspose.cells.b.a.b.zo(var1.h() - var7 + this.g, this.h);
         var6[2] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var1.i() + this.h);
         var6[3] = new com.aspose.cells.b.a.b.zo(var7 + this.g, var1.i() + this.h);
      }

      com.aspose.cells.b.a.b.a.ze var8 = new com.aspose.cells.b.a.b.a.ze();
      var8.b(var6);
      return var8;
   }

   void c(com.aspose.cells.b.a.b.zq var1) {
      var1 = this.d(var1);
      super.c(var1);
   }

   private com.aspose.cells.b.a.b.zq d(com.aspose.cells.b.a.b.zq var1) {
      float var2 = 0.21F * Math.min(var1.h(), var1.i());
      float var3 = var1.f() + var2;
      float var4 = var1.g();
      com.aspose.cells.b.a.b.zq var5 = new com.aspose.cells.b.a.b.zq(var3, var4, var1.h() - 2.0F * var2, var1.i());
      return var5;
   }
}
